from django.contrib.syndication.feeds import Feed
from django.utils.feedgenerator import Atom1Feed

class RssLatestEntriesFeeds(Feed):
    title = "Bingo's blog"
    link = "/blog/"
    description = "Latest entries."

    def items(self):
        return Entry.objects.filter(show_in_blog=True)[:20]

class AtomLatestEntriesFeeds(RssLatestEntriesFeeds):
    feed_type = Atom1Feed
    subtitle = FeedBlogRss.description
